package com.njtoyo.taxi.admin.rest.presenter.data.chart;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
public class RankChartItemPresenter {

    @JsonIgnore
    private DateTime start;
    @JsonIgnore
    private DateTime end;

    private Long startTimeStamp;
    private Long endTimeStamp;
    private Object total;

    public void setStart(DateTime start) {
        this.start = start;
        this.startTimeStamp = start.getTime() / 1000;
    }

    public void setEnd(DateTime end) {
        this.end = end;
        this.endTimeStamp = end.getTime() / 1000;
    }
}
